﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Subscription.aspx.cs" Inherits="Subscription" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="pnlSUb" runat="server">
        <asp:GridView ID="gvSubs" runat="server" AutoGenerateColumns="False" DataKeyNames="name"
            OnSelectedIndexChanged="gvSubs_SelectedIndexChanged">
            <Columns>
                <asp:ButtonField CommandName="select" DataTextField="name" HeaderText="Име" />
                <asp:BoundField DataField="length" HeaderText="Траење (во денови)" />
                <asp:TemplateField HeaderText="Цена">
                    <ItemTemplate>
                        <asp:HiddenField runat="server" ID="hfId" Value='<%#Eval("idSubscription")%>'></asp:HiddenField>
                        <asp:Label runat="server" ID="lblCena" Text='<%#Eval("cost")%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <table>
            <tr>
                <td>
                    Број на кредитна картичка:<asp:RequiredFieldValidator ID="rfield1" runat="server"
                        ErrorMessage="Пополнете го полето за број на кредитна картичка" Display="None"
                        ControlToValidate="txtCardNumber"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:TextBox ID="txtCardNumber" runat="server">4444333322221111</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Рок на истекување:<asp:RequiredFieldValidator ID="rfield2" runat="server" ErrorMessage="Пополнете го полето за рок на истекување"
                        Display="None" ControlToValidate="txtExpiryDate"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:TextBox ID="txtExpiryDate" runat="server">10/08</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Износ:<asp:RequiredFieldValidator ID="rfield3" runat="server" ErrorMessage="Ве молиме одберете тип на претплата"
                        Display="None" ControlToValidate="txtAmount"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:TextBox ID="txtAmount" ReadOnly="true" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnSubmitPreRequest" runat="server" Text="Направи нарачка" OnClick="btnSubmitPreRequest_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Label ID="lblProba" runat="server" Text=""></asp:Label><br />
    <asp:Button ID="btnContinue" Visible="false" runat="server" Text="Продолжи" OnClick="btnContinue_Click" />
</asp:Content>
